//publicPath.js文件：
//下面的注释不可删除
import config from "../vue.set"; //获取devServer的配置，便于统一

(function () {
  //添加乾坤判断
  if (window.__POWERED_BY_QIANKUN__) {
    //__POWERED_BY_QIANKUN__ 使用qiankun初始化的属性
    if (process.env.NODE_ENV === "development") {
      // eslint-disabled-next-line
      __webpack_public_path__ = `//localhost:${config.port}/${config.publicPath}`;
      console.log(__webpack_public_path__);
      return;
    }
    // eslint-disable-next-line
    __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
  }
})();
